home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / os2 / adaptor.zip / ADAPT.ZIP / adaptor / src / include / memory.h < prev    next >
C/C++ Source or Header  |  1993-03-22  |  1KB  |  46 lines

  1. # ifndef yyMemory
  2. # define yyMemory
  3.  
  4. /* $Id: Memory.h,v 1.4 1991/11/21 14:28:16 grosch rel $ */
  5.  
  6. /* $Log: Memory.h,v $
  7.  * Revision 1.4  1991/11/21  14:28:16  grosch
  8.  * new version of RCS on SPARC
  9.  *
  10.  * Revision 1.3  91/07/17  17:23:14  grosch
  11.  * introduced ARGS trick for ANSI compatibility
  12.  * 
  13.  * Revision 1.2  90/12/14  15:55:53  grosch
  14.  * introduced variable MemoryUsed
  15.  * 
  16.  * Revision 1.1  90/07/04  14:34:00  grosch
  17.  * introduced conditional include
  18.  * 
  19.  * Revision 1.0  88/10/04  11:44:42  grosch
  20.  * Initial revision
  21.  * 
  22.  */
  23.  
  24. /* Ich, Doktor Josef Grosch, Informatiker, Sept. 1987 */
  25.  
  26. # ifdef __STDC__
  27. # define ARGS(parameters)    parameters
  28. # else
  29. # define ARGS(parameters)    ()
  30. # endif
  31.  
  32. extern unsigned long MemoryUsed    ;
  33.  
  34. extern void    InitMemory    ();
  35.  
  36. extern char *    Alloc        ARGS((register unsigned long ByteCount));
  37.    /* Returns a pointer to dynamically allocated    */
  38.    /* space of size 'ByteCount' bytes.            */
  39.  
  40. extern void    Free        ARGS((unsigned long ByteCount, char * a));
  41.    /* The dynamically allocated space starting at    */
  42.    /* address 'a' of size 'ByteCount' bytes is        */
  43.    /* released.                        */
  44.  
  45. # endif
  46.